import java.util.StringTokenizer;

class P465 {

	public static void main(String[] args) {
		String line = readLn();
		while (line != null) {
			process(line);
			line = readLn();
		}
	}

	static double maxLongInt = 2147483647.00;
	
	private static void process(String line) {
		StringTokenizer st = new StringTokenizer(line);
		double x = new Double(st.nextToken()).doubleValue();
		String op = st.nextToken();
		double y = new Double(st.nextToken()).doubleValue();
		double result = 0;
		if (op.equals("+")) {
			result = x + y;
		} else {
			result = x * y;
		}
		System.out.println(line);
		if (x > maxLongInt) {
			System.out.println("first number too big");
		}
		if (y > maxLongInt) {
			System.out.println("second number too big");
		}
		if (result > maxLongInt) {
			System.out.println("result too big");
		}

	}

	static String readLn() {
		String newLine = System.getProperty("line.separator");
		StringBuffer buffer = new StringBuffer();
		int car = -1;
		try {
			car = System.in.read();
			while ((car > 0) && (car != newLine.charAt(0))) {
				buffer.append((char) car);
				car = System.in.read();
			}
			if (car == newLine.charAt(0))
				System.in.skip(newLine.length() - 1);
		} catch (java.io.IOException e) {
			return (null);
		}
		if ((car < 0) && (buffer.length() == 0))
			return (null);
		return (buffer.toString()).trim();
	}

}